<?php
	
	
	Class User {

		// user_id
		protected $id;

		// 用户名
		protected $userName;

		/**nickname**/
		protected $nickname;

		// 获取用户ID
		public function getId()
		{
			return $this->id;
		}

		// 获取用户名
		public function getUserName()
		{
			return $this->userName;
		}

		// 设置用户名
		public function setUserName($name)
		{
			return $this->userName = $name;
		}

	}

	$obj = json_decode(json_encode(new User()), true);
	var_dump($obj);die;


	try {

		$reflectionFunction = new \ReflectionFunction('array_merge');

		$res = $reflectionFunction->getParameters();

		var_dump($res);die;

	} catch(\Exception $e) {

		var_dump($e->getMessage());die;

	}

	
?>